<include file="public@header"/>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>认证信息管理</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="{:url('user/adminIndex/index')}">
        用户ID：
        <input class="form-control" type="text" name="uid" style="width: 200px;" value="{:input('request.uid')}"
               placeholder="请输入用户ID">
        关键字：
        <input class="form-control" type="text" name="keyword" style="width: 200px;" value="{:input('request.keyword')}"
               placeholder="用户名/昵称/邮箱">
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <a class="btn btn-danger" href="{:url('user/adminIndex/index')}">清空</a>
    </form>
    <form method="post" class="js-ajax-form">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th>ID</th>
                <th>{:lang('USERNAME')}</th>
                <th>手机</th>
                <th>真实姓名</th>
                <th>身份证号码</th>
                <th>身份证正面</th>
                <th>身份证反面</th>
                <th>审核状态</th>
                <th>提交时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <php>
                $user_statuses = array(0=>'审核中',1=>'审核通过');
            </php>
            <foreach name="list" item="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.user_nickname}({$vo.user_id})</td>
                    <td>{$vo.mobile}</td>
                    <td>{$vo.user_real_name}</td>
                    <td>{$vo.card_number}</td>
                    <td><img width="25" height="25" src="{$vo['card_img1']}"/></td>
                    <td><img width="25" height="25" src="{$vo['card_img2']}"/></td>
                    <td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td>
                    <td>{$user_statuses[$vo['status']]}</td>
                    <td>
                        <if condition="$vo.status eq 1">
                            <a href="{:url('adminIndex/delete_auth',array('id'=>$vo['id'],'status'=>1))}"
                               class="js-ajax-dialog-btn">删除记录</a>
                            <else/>

                            <a href="{:url('adminIndex/examine_auth',array('id'=>$vo['id'],'status'=>1))}"
                               class="js-ajax-dialog-btn">审核通过</a>
                            <br/>
                            <a href="{:url('adminIndex/examine_auth',array('id'=>$vo['id'],'status'=>2))}"
                               class="js-ajax-dialog-btn">拒绝</a>
                        </if>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="pagination">{$page}</div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>